import { http } from "@/utils/http/axios";

const baseProfix = `system/user/signatures`;
// 查询电子签名
export function getList() {
	return http.request<API.Response.BasicResponse>(
		{
			url: `${baseProfix}/list`,
			method: "get"
		},
		{
			isTransformResponse: true
		}
	);
}
// 保存电子签名
export function save(params = {}) {
	return http.request<API.Response.BasicResponse>(
		{
			url: `${baseProfix}`,
			method: "post",
			data: params
		},
		{
			isTransformResponse: false
		}
	);
}
export function remove(ids: number | Array<number>) {
	return http.request<API.Response.BasicResponse>(
		{
			url: `${baseProfix}/${ids}`,
			method: "DELETE"
		},
		{
			isTransformResponse: false
		}
	);
}
export function update(params = {}) {
	return http.request<API.Response.BasicResponse>(
		{
			url: `${baseProfix}`,
			method: "PUT",
			data: params
		},
		{
			isTransformResponse: false
		}
	);
}
